package com.day22.ex08;

public class PrinterDemo {
    public static void main(String[] args) {
        usePrinter(s-> System.out.println(s.toUpperCase()));
        PrintString ps=new PrintString();
        usePrinter(ps::printUpper);
    }
    private static void usePrinter(Printer p){
        p.printUpperCase("HelloWorld");
    }
}
